package com.exonline.listener;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;

/**
 * @desc : 监听ServletRequest域创建与销毁的监听器ServletRequestListener
 * @author : jjr
 */
@WebListener
public class RequestListener implements ServletRequestListener {

    @Override
    public void requestInitialized(ServletRequestEvent arg0) {
        System.out.println("request创建");
    }

    @Override
    public void requestDestroyed(ServletRequestEvent arg0) {
        System.out.println("request销毁");
    }
}

